# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-huawei-y530
pkgdesc="Huawei Ascend Y530"
pkgver=1
pkgrel=17
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-huawei-y530 mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-huawei-y530"
	mkdir "$subpkgdir"
}

sha512sums="29bfe3aa45eebeb3b18821a3af59b37339e46ed0d1bc3d441f6bff8481d71fbff0b845fd92e14a98a50bb4feaa34211826e10b3a0b61139306f9444660bddbcf  deviceinfo"
